package com.example.jenkinsdemo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping(value = "test")
public class TestController {

    @RequestMapping(value = "demo")
    @ResponseBody
    public Map test(String a){
        Map map = new HashMap();
        map.put("value",a);
        map.put("msg","欢迎来到Jenkins");
        return map;
    }
}
